import request from './index.js' //引入index.js
const api = request
/*上传照片*/
export const uploadFilePromise = (params) => api.request('/api/file/formimage', 'POST', params, true)
/*上传视频*/
export const formVideo = (params) => api.request('/api/file/formVideo', 'POST', params, true)
/** 登录 */
export const authLogin = (params) => api.request('/api/account/authLogin', 'POST', params)
/** 更新用户信息 */
export const updateUser = (params) => api.request('/api/account/updateUser', 'POST', params)
/** 更新用户信息 */
export const getUserinfo = (params) => api.request('/api/user/center', 'POST', params)
/** 通用配置 */
export const config = (params) => api.request('/api/index/config', 'POST', params)
/** 一级分类 */
export const getLevelOneList = (params) => api.request('/api/goods_category/getLevelOneList', 'GET', params)
/** 二级分类 */
export const getListByLevelOne = (params) => api.request(`/api/goods_category/getListByLevelOne?id=${params}`, 'GET')
/** 商品列表 */
export const getGoodsList = (params) => api.request(`/api/goods/getGoodsList`, 'GET', params)
/** 广告位列表 */
export const getPositionList = (params) => api.request(`/api/ad/lists`, 'GET', params)
/** 获取主营类目列表 */
export const getcategoryList = (params) => api.request(`/api/shop_category/getList`, 'GET', params)
/** 获取微信手机号 */
export const getPhoneNumber = (params) => api.request(`/api/user/getPhoneNumber`, 'POST', params)
/** 关键词搜索记录+热搜关键词 */
export const search_recordClear = (params) => api.request(`/api/search_record/clear`, 'POST', params)
/** 获取协议详情 */
export const Helpdetail = (params) => api.request(`/api/Help/detail`, 'GET', params)
/** 搜索发现 */
export const Findlists = (params) => api.request(`/api/search_record/Findlists`, 'GET', params)
/** 金刚区列表 */
export const menulists = (params) => api.request(`/api/menu/lists`, 'GET', params)
/** 商品详情 */
export const getGoodsDetail = (params) => api.request(`/api/goods/getGoodsDetail`, 'GET', params)
/** 添加用户收货地址 */
export const address = (params) => api.request(`/api/user_address/add`, 'POST', params)
/** 获取入驻费及验厂等费用配置 */
export const getuzhuTemplate = (params) => api.request(`/api/recharge/getuzhuTemplate`, 'POST', params)
/** 获取权益图片文本等信息 */
export const getAdTemplate = (params) => api.request(`/api/recharge/getAdTemplate`, 'GET', params)
/** 商家入驻申请 */
export const ShopApply = (params) => api.request(`/api/ShopApply/apply`, 'POST', params)
/** 缴纳入驻费或检验费(需要先调用入驻提交接口） */
export const ruzhucharge = (params) => api.request(`/api/recharge/ruzhucharge`, 'POST', params)
/** 申请记录 */
export const record = (params) => api.request(`/api/ShopApply/record`, 'GET', params)
/** 调用支付 */
export const unifiedpay = (params) => api.request(`/api/pay/unifiedpay`, 'POST', params)
/** 获取用户默认地址 */
export const getDefault = (params) => api.request(`/api/user_address/getDefault`, 'POST', params)
/** 获取用户地址列表 */
export const addresslists = (params) => api.request(`/api/user_address/lists`, 'POST', params)
/** 评论分类 */
export const category = (params) => api.request(`/api/goods_comment/category`, 'GET', params)
/** 商品评论列表 */
export const commentlists = (params) => api.request(`/api/goods_comment/lists`, 'GET', params)
/** 商品收藏 */
export const changeStatus = (params) => api.request(`/api/goods_collect/changeStatus`, 'POST', params)
/** 加入购物车 */
export const addCart = (params) => api.request(`/api/cart/add`, 'POST', params)
/** 订单结算 */
export const settlement = (params) => api.request(`/api/order/settlement`, 'POST', params)
/** 下单 */
export const submitOrder = (params) => api.request(`/api/order/submitOrder`, 'POST', params)
/** 获取支付方式 */
export const getPayWay = (params) => api.request(`/api/order/getPayWay`, 'POST', params)
/** 购物车列表 */
export const cartLists = (params) => api.request(`/api/cart/lists`, 'GET', params)
/** 选中状态 */
export const selected = (params) => api.request(`/api/cart/selected`, 'POST', params)
/**数量修改 */
export const cartChange = (params) => api.request(`/api/cart/change`, 'POST', params)
/**删除购物车 */
export const cartDel = (params) => api.request(`/api/cart/del`, 'POST', params)
/**获取分类类别（即为货源信息和采购信息分类） */
export const communityCate = (params) => api.request(`/api/community/cate`, 'GET', params)
/**获取商圈列表 */
export const articleLists = (params) => api.request(`/api/community/articleLists`, 'GET', params)
/**关注/取消 */
export const communityfollow = (params) => api.request(`/api/community/follow`, 'POST', params)
/**获取商圈看板 */
export const boardInfo = (params) => api.request(`/api/community/boardInfo`, 'GET', params)
/**生成二维码 */
export const qrcode = (params) => api.request(`/api/community/qrcode`, 'GET', params)
/**获取商圈上传配置 */
export const getExhibitionConfig = (params) => api.request(`/api/community/getExhibitionConfig`, 'GET', params)
/**发布商圈 */
export const addArticle = (params) => api.request(`/api/community/addArticle`, 'POST', params)
/**购物车数量 */
export const cartnum = (params) => api.request(`/api/cart/num`, 'GET', params)
/**个人中心 */
export const communityUser = (params) => api.request(`/api/community_user/center`, 'GET', params)
/**找展会列表 */
export const getExhibitionList = (params) => api.request(`/api/community/getExhibitionList`, 'GET', params)
/**会展登记/咨询 */
export const addExhibitionForm = (params) => api.request(`/api/community/addExhibitionForm`, 'POST', params)
/**资讯列表 */
export const articlelists = (params) => api.request(`/api/article/lists`, 'GET', params)
/**找展会详情 */
export const getExhibitionInfo = (params) => api.request(`/api/community/getExhibitionInfo`, 'GET', params)
/**获取用户地址列表 */
export const useraddresslists = (params) => api.request(`/api/user_address/lists`, 'GET', params)
/**设置用户默认地址 */
export const setDefault = (params) => api.request(`/api/user_address/setDefault`, 'POST', params)
/**删除用户收货地址 */
export const useraddressDel = (params) => api.request(`/api/user_address/del`, 'POST', params)
/**更新用户收货地址 */
export const useraddressUpdate = (params) => api.request(`/api/user_address/update`, 'POST', params)
/**绑定或修改手机号 */
export const changeMobile = (params) => api.request(`/api/user/changeMobile`, 'POST', params)
/**账户注销 */
export const userDelete = (params) => api.request(`/api/user_delete/delete`, 'POST', params)
/**获取协议列表 */
export const Helplists = (params) => api.request(`/api/Help/lists`, 'GET', params)
/**意见反馈 */
export const feedback = (params) => api.request(`/api/help/feedback`, 'POST', params)
/**获取关注列表 */
export const followlist = (params) => api.request(`/api/community/followlist`, 'POST', params)
/**个人中心-作品列表 */
export const worksLists = (params) => api.request(`/api/community/worksLists`, 'GET', params)
/**获取订单 */
export const getorderList = (params) => api.request(`/api/order/lists`, 'GET', params)
/**获取订单 */
export const getOrderDetail = (params) => api.request(`/api/order/getOrderDetail`, 'GET', params)
/**取消订单 */
export const ordercancel = (params) => api.request(`/api/order/cancel`, 'POST', params)
/**删除订单 */
export const orderDel = (params) => api.request(`/api/order/del`, 'POST', params)
/**商品评价页面信息 */
export const getCommentPage = (params) => api.request(`/api/goods_comment/getCommentPage`, 'GET', params)
/**商品评价页面信息 */
export const addGoodsComment = (params) => api.request(`/api/goods_comment/addGoodsComment`, 'POST', params)
/**商品收藏列表 */
export const goodsCollect = (params) => api.request(`/api/goods_collect/lists`, 'GET', params)
/**商品足迹列表 */
export const goodsCollectfootlists = (params) => api.request(`/api/goods_collect/footlists`, 'GET', params)
/**获取会员集采购配置信息 */
export const getTemplates = (params) => api.request(`/api/recharge/getTemplates`, 'GET', params)
/**集采购会员权益图和文字 */
export const getAgnetTemplate = (params) => api.request(`/api/recharge/getAgnetTemplate`, 'GET', params)
/**集采购购买 */
export const rejcharge = (params) => api.request(`/api/recharge/rejcharge`, 'POST', params)
/**代理费缴纳 */
export const agentcharge = (params) => api.request(`/api/recharge/agentcharge`, 'GET', params)
/**店铺列表 */
export const getShopList = (params) => api.request(`/api/shop/getShopList`, 'GET', params)
/**店铺信息 */
export const getShopInfo = (params) => api.request(`/api/shop/getShopInfo`, 'GET', params)
/**店铺信息 */
export const activity = (params) => api.request(`/api/jcai/activity`, 'GET', params)
/**拼单集采列表 */
export const getpdGoodsList = (params) => api.request(`/api/goods/getpdGoodsList`, 'GET', params)
/**拼单集采列表 */
export const getConfig = (params) => api.request(`/api/community/getConfig`, 'GET', params)
/**找产品-行家严选 */
export const getchooseByExpertList = (params) => api.request(`/api/goods/getchooseByExpertList`, 'GET', params)
/**找产品-热卖爆品 */
export const getHotSellers = (params) => api.request(`/api/goods/getHotSellers`, 'GET', params)
/**找产品-年度榜 */
export const getAnnualTopProducts = (params) => api.request(`/api/goods/getAnnualTopProducts`, 'GET', params)
/**找产品-收藏榜 */
export const getProductCollectionRanking = (params) => api.request(`/api/goods/getProductCollectionRanking`, 'GET', params)
/**找产品-机构必采 */
export const getBibuySellers = (params) => api.request(`/api/goods/getBibuySellers`, 'GET', params)
/**找产品-新品上新 */
export const getNewProduct = (params) => api.request(`/api/goods/getNewProduct`, 'GET', params)
/**找产品-居家爆品 */
export const getHomeHitsList = (params) => api.request(`/api/goods/getHomeHitsList`, 'GET', params)
/**集采购-集采爆品 */
export const getpurchaseExplosives = (params) => api.request(`/api/goods/getpurchaseExplosives`, 'GET', params)
/**集采购-推荐榜 */
export const getRecommendedPurchaseList = (params) => api.request(`/api/goods/getRecommendedPurchaseList`, 'GET', params)
/**集采购-年度榜 */
export const getPurchaseAnnualRank = (params) => api.request(`/api/goods/getPurchaseAnnualRank`, 'GET', params)
/**找厂家-权威验厂 */
export const getverifyAuthorizedFactory = (params) => api.request(`/api/shop/getverifyAuthorizedFactory`, 'GET', params)
/**找厂家-年度榜 */
export const getManufacturerAnnualTopList = (params) => api.request(`/api/shop/getManufacturerAnnualTopList`, 'GET', params)
/**找厂家-热销企业 */
export const getHotManufacturers = (params) => api.request(`/api/shop/getHotManufacturers`, 'GET', params)
/**找厂家-热销企业-热门工厂精选 */
export const getHotGoods = (params) => api.request(`/api/goods/getHotGoods`, 'GET', params)
/**找厂家-集采联盟 */
export const getexecuteCollectiveProcurement = (params) => api.request(`/api/shop/getexecuteCollectiveProcurement`, 'GET', params)
/**设置用户信息 */
export const setUserInfo = (params) => api.request(`/api/user/setInfo`, 'POST', params)
/**获取用户信息 */
export const getuserInfo = (params) => api.request(`/api/user/info`, 'GET', params)
/**查看物流 */
export const orderTraces = (params) => api.request(`/api/order/orderTraces`, 'GET', params)
/**售后商品信息 */
export const goodsInfo = (params) => api.request(`/api/after_sale/goodsInfo`, 'GET', params)
/**提交售后 */
export const afterSale = (params) => api.request(`/api/after_sale/add`, 'POST', params)
/**未评论订单列表 */
export const getUnCommentOrder = (params) => api.request(`/api/goods_comment/getUnCommentOrder`, 'GET', params)
/**已评价列表 */
export const getCommentOrder = (params) => api.request(`/api/goods_comment/getCommentOrder`, 'GET', params)
/**售后列表 */
export const afterSalelists = (params) => api.request(`/api/after_sale/lists`, 'GET', params)
/**售后详情 */
export const afterSalelistsDetail = (params) => api.request(`/api/after_sale/detail`, 'GET', params)
/**店铺收藏列表 */
export const shopFollowlists = (params) => api.request(`/api/shop_follow/lists`, 'GET', params)
/**关注店铺 */
export const shopchangeStatus = (params) => api.request(`/api/shop_follow/changeStatus`, 'POST', params)
/**店铺足迹列表 */
export const shopfootlists = (params) => api.request(`/api/shop_follow/footlists`, 'GET', params)
/**提交发票 */
export const orderInvoiceadd = (params) => api.request(`/api/order_invoice/add`, 'POST', params)
/**订单发票详情 */
export const orderinvoice = (params) => api.request(`/api/order/invoice`, 'GET', params)
/**我的收益 */
export const userMymoney = (params) => api.request(`/api/User/mymoney`, 'POST', params)
/**我的收益明细收入 */
export const mymoneylist = (params) => api.request(`/api/User/mymoneylist`, 'GET', params)
/**我的支出列表 */
export const mymoneyapplylist = (params) => api.request(`/api/User/mymoneyapplylist`, 'GET', params)
/**银行列表 */
export const bankList = (params) => api.request(`/api/user/bankList`, 'GET', params)
/**添加银行 */
export const addBankCard = (params) => api.request(`/api/User/addBankCard`, 'POST', params)
/**获取添加的银行卡 */
export const getBankCard = (params) => api.request(`/api/user/getBankCard`, 'GET', params)
/**删除银行卡 */
export const delBank = (params) => api.request(`/api/user/delBank`, 'POST', params)
/**添加支付宝 */
export const addAlipay = (params) => api.request(`/api/User/addAlipay`, 'POST', params)
/**获取榜单的支付宝 */
export const getAlipayInfo = (params) => api.request(`/api/user/getAlipayInfo`, 'GET', params)
/**代理佣金提现 */
export const applyWithdraw = (params) => api.request(`/api/user/applyWithdraw`, 'POST', params)
/**代理佣金提现 */
export const myuser = (params) => api.request(`/api/User/myuser`, 'GET', params)
/**众筹预约接口 */
export const addJcaiJoin = (params) => api.request(`/api/jcai/addJcaiJoin`, 'POST', params)
/**获取集众筹详情 */
export const getJcaiDetail = (params) => api.request(`/api/jcai/getJcaiDetail`, 'POST', params)
/**集众筹下单 */
export const Jcaizc = (params) => api.request(`/api/jcai/Jcaizc`, 'POST', params)
/**店铺资质 */
export const copyright = (params) => api.request(`/api/index/copyright`, 'GET', params)
/**真实性验证 */
export const qualifications = (params) => api.request(`/api/shop/qualifications`, 'GET', params)
/**聊天记录 */
export const chatRecord = (params) => api.request(`/api/user/chatRecord`, 'GET', params)
/**开关配置 */
export const getChatConfig = (params) => api.request(`/api/index/chatConfig`, 'GET', params)
/**检测注销 */
export const apiuserDeletecheck = (params) => api.request(`/api/userDelete/check`, 'GET', params)
/**商圈详情 */
export const communityDetail = (params) => api.request(`/api/community/detail`, 'GET', params)
/**商圈详情 */
export const delArticle = (params) => api.request(`/api/community/delArticle`, 'POST', params)
/**会话列表 */
export const getChatUserList = (params) => api.request(`/api/user/getChatUserList`, 'GET', params)
/**系统通知 */
export const chatnotice = (params) => api.request(`/api/notice/index`, 'GET', params)
/**系统通知列表 */
export const noticelists = (params) => api.request(`/api/notice/lists`, 'GET', params)
/**气泡 */
export const getBubble = (params) => api.request(`/api/search_record/getBubble`, 'GET', params)
/**气泡 */
export const searchGoods = (params) => api.request(`/api/search_record/searchGoods`, 'GET', params)
/**热搜 */
export const getSearchHot = (params) => api.request(`/api/search_record/getSearchHot`, 'GET', params)
